﻿<%@ Control Language="C#" 
    AutoEventWireup="true" 
    CodeBehind="UC_NewsAddUpdate.ascx.cs"
    Inherits="Stationery.UC.UC_NewsAddUpdate" 
%>
    
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dxuc" %>
<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dxhe" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxSpellChecker.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxSpellChecker" TagPrefix="dxwsc" %>
    
<table cellpadding="0" cellspacing="5" width="100%" border="0">
    <tr>
        <td width="150px">
             <dxe:ASPxLabel ID="ASPxLabel2" runat="server" Text="Nhóm tin"></dxe:ASPxLabel>
        </td>
        <td width="600px">
            <dxe:ASPxComboBox ID="ASPxComboBoxNewsGroup" runat="server"
                ValueType="System.Int32" Width="400px">
            </dxe:ASPxComboBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="(*)" ControlToValidate="ASPxComboBoxNewsGroup">
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td width="150px">
            <dxe:ASPxLabel ID="ASPxLabel1" runat="server" Text="Tiêu đề tin tức">
            </dxe:ASPxLabel>
        </td>
        <td width="600px">
            <dxe:ASPxTextBox ID="ASPxTextBoxTitle" runat="server" Width="600px">
                <ValidationSettings Display="Dynamic" SetFocusOnError="True">
                    <RequiredField IsRequired="True" ErrorText="*" />
                </ValidationSettings>
            </dxe:ASPxTextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ErrorMessage="(*)" ControlToValidate="ASPxTextBoxTitle"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td width="150px">
        </td>
        <td width="600px">
            <dxe:ASPxCheckBox ID="ASPxCheckBoxHotNews" runat="server" Checked="false" Text="Hot News">
            </dxe:ASPxCheckBox>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <dxe:ASPxLabel ID="ASPxLabel3" runat="server" Text="Tin tóm tắt">
            </dxe:ASPxLabel>
        </td>
    </tr>
    <tr>
        <td colspan="3" style="padding-top: 4px; padding-bottom: 4px;">
            <dxhe:ASPxHtmlEditor ID="ASPxHtmlEditorNewsDesc" runat="server" Width="100%" 
                Height="400px">
                <SettingsImageUpload UploadImageFolder="~/Image/Upload/News/">
                    <ValidationSettings AllowedContentTypes="image/jpeg,image/pjpeg,image/gif,image/png,image/x-png">
                    </ValidationSettings>
                </SettingsImageUpload>
            </dxhe:ASPxHtmlEditor>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <dxe:ASPxLabel ID="ASPxLabel4" runat="server" Text="Nội dung tin tức">
            </dxe:ASPxLabel>
        </td>
    </tr>
    <tr>
        <td colspan="3" style="padding-top: 4px; padding-bottom: 4px;">
            <dxhe:ASPxHtmlEditor ID="ASPxHtmlEditorNewsDetail" runat="server" Width="100%" 
                Height="400px">
                <SettingsImageUpload UploadImageFolder="~/Image/Upload/News/">
                    <ValidationSettings AllowedContentTypes="image/jpeg,image/pjpeg,image/gif,image/png,image/x-png">
                    </ValidationSettings>
                </SettingsImageUpload>
            </dxhe:ASPxHtmlEditor>
        </td>
    </tr>
    <tr>
        <td width="150px">
            <dxe:ASPxLabel ID="ASPxLabel5" runat="server" Text="Hình ảnh">
            </dxe:ASPxLabel>
        </td>
        <td width="600px">
            <%--<dxuc:ASPxUploadControl ID="ASPxUploadControlImage" runat="server" Width="300px">
            </dxuc:ASPxUploadControl>   --%>                                
            <asp:FileUpload ID="ASPxUploadControlImage" runat="server" Width="300px" />
        </td>
        <td>
        </td>
    </tr>   
    <tr>
        <td width="150px">
        </td>
        <td width="600px">
            <dxe:ASPxBinaryImage ID="ASPxBinaryImageData" runat="server" Width="130px" Height="100px">
            </dxe:ASPxBinaryImage>
        </td>
        <td>
        </td>
    </tr> 
    <tr>
        <td width="150px">
        </td>
        <td width="600px">
            <dxe:ASPxLabel ID="ASPxLabelException" runat="server" Text="" 
                Font-Bold="True" Font-Names="Arial" ForeColor="Red">
            </dxe:ASPxLabel>
        </td>
        <td>
        </td>
    </tr>   
    <tr>
        <td align="right">
            <dxe:ASPxButton ID="ASPxButtonAccept" runat="server" Text="Chấp nhận" 
                OnClick="ASPxButtonAccept_Click" Width="100px">
            </dxe:ASPxButton>
        </td>
        <td align="left">
            <dxe:ASPxButton ID="ASPxButtonCancel" runat="server" Text="Hủy" 
                OnClick="ASPxButtonCancel_Click" Width="100px">
            </dxe:ASPxButton>
        </td>
        <td>
        </td>
    </tr>
</table>
